package com.learning_paicoding.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * <p>
 * 用户关系表
 * </p>
 *
 * @author hph
 * @since 2025-07-06
 */
@Data
@Accessors(chain = true)
@TableName("user_relation")
@Schema(name = "UserRelation", description = "用户关系表")
public class UserRelation implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "主键ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(description = "用户id")
    @TableField("user_id")
    private Long userId;

    @Schema(description = "用户id")
    @TableField("follow_user_id")
    private Long followUserId;

    @Schema(description = "阅读状态: 0-未关注，1-已关注，2-取消关注")
    @TableField("follow_state")
    private Byte followState;

    @Schema(description = "创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @Schema(description = "最后更新时间")
    @TableField("update_time")
    private LocalDateTime updateTime;



}
